<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/gsap.min.js"></script>

    <link rel="stylesheet" href="./index.css" />

    <style>
        body {
            width: 100%;
            min-height: 100vh;
            overflow: hidden;
        }

        .text {
            position: absolute;
            pointer-events: none;
            color: #fff;
            font-size: 10em;
            -webkit-text-stroke: 2px #000;
            font-weight: 800;
            text-transform: uppercase;
            transform: translate(-50%, -50%);
        }
    </style>
</head>

<body>
    <div class="cursor">
        <div class="text">YXL8</div>
        <div class="text">YXL7</div>
        <div class="text">YXL6</div>
        <div class="text">YXL5</div>
        <div class="text">YXL4</div>
        <div class="text">YXL3</div>
        <div class="text">YXL2</div>
        <div class="text">YXL1</div>
    </div>

    <script>
        document.addEventListener("mousemove", (e) => {
            gsap.to(".text", {
                x: e.clientX,
                y: e.clientY,
                stagger: -0.02,
            });
        });
    </script>
</body>

</html>